var key = $("#pubKey").val();
//RSA加密，返回加密后的值
function doRSAEncrypt(input) {
  var rsa = new RSAKey();
  rsa.setPublic(key, "10001");
  var res = rsa.encrypt(input);

  if (res == null) return input;
  return res;
}

